PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-21 10:11:05.326521+00:00 (UTC)
In US/Central Time, this is 2024-03-21 05:11:05.326521-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/397ec44be26215df22ec163c82c963d95a62385698f90a269083611e021cbdbf.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/9f588cec3451d04ff72b94c4415341298eecbc49d1d7f1cbecd5eb69949d2e80.png
fig = px.line(vix)
fig.show()
../../_images/42686505a4512282164096f30ecaa6093b112716928f67d3d1fa44548aa9c69d.png